package cn.com.wangluotongxin.database;

import cn.com.wangluotongxin.database.mysql.LoadMysqlDatabaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class AppRunner implements ApplicationRunner {

    @Autowired
    private LoadMysqlDatabaseInfoService databaseInfoService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        databaseInfoService.load();
    }
}
